<style type="text/css">
.jylabel-red-0.active::after{content:" ";width:23px;height:24px;background:url(../core/resource/images/promotion-bg.png) 0 -159px no-repeat;position:absolute;float:right;right:-1px;bottom:-1px;text-align:center;background-color:#fce9e9;}
</style>
<div class="fui-page order-create-page fui-page-current">
	 <div class="fui-header">
		<div class="fui-header-left" ng-click="goback()">
            <a class="back"></a>
        </div>
		<div class="title">实物收获</div>
		<div class="fui-header-right"></div>
	</div>
	<div class="fui-content">
		<div ng-include="sys_html('_peisong')"></div>
		<div class="jy-content">
		<div class="weui_cells" style="margin-top:0">
		<div class="weui_cell">
                <div class="weui_cell_hd weui_cell_primary" style="padding:0.3rem 0">
                    <span>果树名称</span>
                </div>
                <div class="weui_cell_ft">{{pagedata.animal.title}}</div>
        </div>
		<div class="weui_cell">
                <div class="weui_cell_hd weui_cell_primary" style="padding:0.3rem 0">
                    <span>认领数量</span>
                </div>
                <div class="weui_cell_ft">{{pagedata.order.total}}棵</div>
        </div>
		<div class="weui_cell">
                <div class="weui_cell_hd weui_cell_primary"  style="padding:0.3rem 0">
                    <span>预计收获</span>
                </div>
                <div class="weui_cell_ft">{{pagedata.animal.shoukg}}KG/棵</div>
        </div>
		<div class="weui_cell">
                <div class="weui_cell_hd weui_cell_primary"  style="padding:0.3rem 0">
                    <span>实际收获</span>
                </div>
                <div class="weui_cell_ft">{{pagedata.log.shoukg}}KG</div>
        </div>
		<div ng-if="pagedata.post.sendtype!=1" class="weui_cell">
                <div class="weui_cell_hd"><label class="weui_label">联系人</label></div>
                <div class="weui_cell_bd weui_cell_primary">
                    <input ng-model="pagedata.post.username" class="weui_input" type="text" placeholder="请输入联系人">
                </div>
        </div>
		<div ng-if="pagedata.post.sendtype!=1" class="weui_cell">
                <div class="weui_cell_hd"><label class="weui_label">联系电话</label></div>
                <div class="weui_cell_bd weui_cell_primary">
                    <input ng-model="pagedata.post.mobile" class="weui_input" type="text" placeholder="请输入电话">
                </div>
        </div>
		<div ng-if="pagedata.post.sendtype==1" class="weui_cell">
                <div class="weui_cell_hd weui_cell_primary"  style="padding:0.3rem 0">
                    <span>配送费用</span>
                </div>
                <div class="weui_cell_ft">{{pagedata.post.peisongfee}}元</div>
        </div>
		</div>
		<div class="weui_btn_area">																			
			 <a ng-if="!pagedata.pay_id" class="weui_btn weui_btn_primary" href="javascript:" id="showTooltips" ng-click="pagedata.pay()">确认提交</a>
		</div>
		</div>
</div>
</div>
<div ng-include="sys_html('_footer')"></div>
<script type="text/javascript">
scope.pagedata.pay=function(){
	scope.post_json('jy_newnong/shou2/post/',scope.pagedata.post,function(result){
		scope.pagedata.pay_id=result.pay_id;
		scope.$evalAsync();
		scope.tool.pay(result.pay_id,function(res){
				if(res.type=='success'){
					scope.message('支付成功！','success','/myhome/');
				}else{
					scope.message('支付失败！','success','/myhome/');
				}
		},'','','/myhome/');
	});
}
</script>